﻿using Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.Repository
{
    public interface ICMRepository
    {
        //查询全部
        Task<List<CM>> GetCMAsync();
        //删除
        Task<bool> DeleteCMAsync(int id);
        //新增
        Task<bool> AddCMAsync(CM cM);
		Task<List<CM>> GetCMAsyncById(string id);
		Task<CM> GetCMSAsyncById(string id);
	}
}
